package com.t235.gc.goods.controller;

import com.t235.gc.AjaxResult;
import com.t235.gc.goods.service.GoodsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/good")
@Slf4j
public class NoJurisdiction {
    @Autowired
    GoodsService goodsService;
    @GetMapping("/FindByGoodsCategoryId")
    public AjaxResult FindByGoodsCategoryId(Long goodscategoryid){
        //根据商品分类查询商品数据
        return AjaxResult.success(goodsService.FindByGoodsCategoryId(goodscategoryid));
    }
    @GetMapping(value = "/login")
    public void login(String username,String password)  {
        log.debug(username+"==="+password);
        /*return AjaxResult.success(goodsService.FindByAll(goods));*/
    }
}
